<?php $LesMessages = Message::RetourneMessages(); ?>
<h2>Tous les Messages</h2>
<div class="tableau">
	<table>
		<tr><th>ID</th><th>Titre</th><th>Visible</th><th>Date Cr&eacute;ation</th><th>Date Modification</th><th>Action</th></tr>
		<?php 
			foreach( $LesMessages as $LeMessage ) {
				echo "<tr>"
						."<td>" . $LeMessage->ID_Message . "</td>"
						."<td>" . $LeMessage->Titre_Message . "</td>"
						."<td>" . (($LeMessage->EstVisible_Message == 1) ? "Oui" : "Non" ) . "</td>"
						."<td>" . $LeMessage->Date_Creation_Message . "</td>"
						."<td>" . $LeMessage->Date_Modification_Message . "</td>"
						."<td>"
							."<a href=\"" . root() . "Admin/index.php?Module=" . $Module . "&amp;Action=Editer&amp;ID=" . $LeMessage->ID_Message . "\">"
								."Modifier"
							."</a>"
							."&nbsp;&nbsp;<a href=\"" . root() . "Admin/index.php?Module=" . $Module . "&amp;Action=Supprimer&amp;ID=" . $LeMessage->ID_Message . "\">"
								."Supprimer"
							."</a>"
						."</td>"
					."</tr>";
			}
		?>
	</table>
</div>